<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>RTW Report - ert_main.c</title>
<link rel="stylesheet" type="text/css" href="rtwreport.css"></link><script language="JavaScript" type="text/javascript" src="rtwreport_utils.js"></script>
<SCRIPT type="text/javascript" language="JavaScript" src="slwebview.js"></SCRIPT>
<SCRIPT type="text/javascript" language="JavaScript" src="id_mapping.js"></SCRIPT>
<SCRIPT type="text/javascript" src="rtwannotate.js"></SCRIPT>
</head>
<body bgcolor="#eeeeee" onload="try {if (top) { if (top.rtwFileOnLoad) top.rtwFileOnLoad(window.document); else local_onload();}} catch(err) {};if (typeof rtwannotate === 'function') {rtwannotate('ert_main_c_cov.xml');}">
<p>
<table border="0" cellspacing="0" cellpadding="6" width="100%%" height="100%%"><tr><td width="100%%" valign="top" bgcolor="#ffffff">
<h4>File: <a href="../ert_main.c" target="rtwreport_document_frame" id="linkToText_plain">ert_main.c</a></h4>
<pre id="RTWcode">
<span><a class="LN" name="1">    1   </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">&lt;stddef.h&gt;</font>
</span><span><a class="LN" name="2">    2   </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">&lt;stdio.h&gt;</font>
</span><span><a class="LN" name="3">    3   </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">&quot;uvtest.h&quot;</font>
</span><span><a class="LN" name="4">    4   </a><font color="#992211">#</font><span class="PP">include</span> <font color="#992211">&quot;rtwtypes.h&quot;</font>
</span><span><a class="LN" name="5">    5   </a>
</span><span><a class="LN" name="6">    6   </a><span class="DT">void</span> <a href="#fcn_rt_OneStep" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_rt_OneStep');" target="_self"><font color="#1122aa">rt_OneStep</font></a>(<span class="DT">void</span>);
</span><span><a class="LN" name="7">    7   </a><span class="DT">void</span> <a name="fcn_rt_OneStep">rt_OneStep</a>(<span class="DT">void</span>)
</span><span><a class="LN" name="8">    8   </a><b>{</b>
</span><span><a class="LN" name="9">    9   </a>  <span class="DT">static</span> <a href="rtwtypes_h.html#type_boolean_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_boolean_T');" target="_self"><font color="#1122aa">boolean_T</font></a> OverrunFlag = false;
</span><span><a class="LN" name="10">   10   </a>  <span class="KW">if</span> (OverrunFlag) <b>{</b>
</span><span><a class="LN" name="11">   11   </a>    rtmSetErrorStatus(<a href="uvtest_c.html#var_uvtest_M" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_uvtest_M');" target="_self"><font color="#1122aa">uvtest_M</font></a>, <font color="#1122ff">&quot;Overrun&quot;</font>);
</span><span><a class="LN" name="12">   12   </a>    <span class="KW">return</span>;
</span><span><a class="LN" name="13">   13   </a>  <b>}</b>
</span><span><a class="LN" name="14">   14   </a>
</span><span><a class="LN" name="15">   15   </a>  OverrunFlag = true;
</span><span><a class="LN" name="16">   16   </a>  <a href="uvtest_c.html#fcn_uvtest_step" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_uvtest_step');" target="_self"><font color="#1122aa">uvtest_step</font></a>();
</span><span><a class="LN" name="17">   17   </a>  OverrunFlag = false;
</span><span><a class="LN" name="18">   18   </a><b>}</b>
</span><span><a class="LN" name="19">   19   </a>
</span><span><a class="LN" name="20">   20   </a><a href="rtwtypes_h.html#type_int_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int_T');" target="_self"><font color="#1122aa">int_T</font></a> <a name="fcn_main">main</a>(<a href="rtwtypes_h.html#type_int_T" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'type_int_T');" target="_self"><font color="#1122aa">int_T</font></a> argc, <span class="DT">const</span> <span class="DT">char</span> *argv[])
</span><span><a class="LN" name="21">   21   </a><b>{</b>
</span><span><a class="LN" name="22">   22   </a>  (<span class="DT">void</span>)(argc);
</span><span><a class="LN" name="23">   23   </a>  (<span class="DT">void</span>)(argv);
</span><span><a class="LN" name="24">   24   </a>  <a href="uvtest_c.html#fcn_uvtest_initialize" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_uvtest_initialize');" target="_self"><font color="#1122aa">uvtest_initialize</font></a>();
</span><span><a class="LN" name="25">   25   </a>  printf(<font color="#1122ff">&quot;Warning: The simulation will run forever. &quot;</font>
</span><span><a class="LN" name="26">   26   </a>         <font color="#1122ff">&quot;Generated ERT main won't simulate model step behavior. &quot;</font>
</span><span><a class="LN" name="27">   27   </a>         <font color="#1122ff">&quot;To change this behavior select the 'MAT-file logging' option.\n&quot;</font>);
</span><span><a class="LN" name="28">   28   </a>  fflush((NULL));
</span><span><a class="LN" name="29">   29   </a>  <span class="KW">while</span> (rtmGetErrorStatus(<a href="uvtest_c.html#var_uvtest_M" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'var_uvtest_M');" target="_self"><font color="#1122aa">uvtest_M</font></a>) == (NULL)) <b>{</b>
</span><span><a class="LN" name="30">   30   </a>  <b>}</b>
</span><span><a class="LN" name="31">   31   </a>
</span><span><a class="LN" name="32">   32   </a>  <a href="uvtest_c.html#fcn_uvtest_terminate" onclick="if (top) if (top.docHiliteMe) top.docHiliteMe(window, 'fcn_uvtest_terminate');" target="_self"><font color="#1122aa">uvtest_terminate</font></a>();
</span><span><a class="LN" name="33">   33   </a>  <span class="KW">return</span> 0;
</span><span><a class="LN" name="34">   34   </a><b>}</b>
</span><span><a class="LN" name="35">   35   </a>
</span></pre>
</td></tr></table>
</p>
</body>
</html>